# 多分支语句
# while 1:
#     score = int(input('请输入你的学分：'))
#     if score == 100:
#         print('恭喜你获得满分')
#     elif 90 <= score < 100:
#         print('恭喜你达到优秀')
#     elif 80 <= score < 90:
#         print('恭喜你达到良好')
#     elif 70 <= score < 80:
#         print('你的成绩是中等，请不要灰心')
#     elif 60 <= score < 70:
#         print('你已及格，请继续努力')
#     else:
#         print('抱歉，你的成绩不合格')
user_str = 'admin'
password_str = '123456'
while True:
    user = input('请输入用户名：')
    password = input('请输入密码：')
    if user == user_str :
        print('账号正确！')
        if password == password_str:
            print('登录成功！')
            break
        else:
            print('密码错误')

    else:
        print('账号错误')

